package com.inibb.app.constant;

import java.util.ArrayList;
import java.util.List;

public enum YesNoVariables {
    YES,
    NO,
    PENDING;
    public String getCode() {
    	switch (this) {
    	case YES:
    		return "Y";
    	case NO:
    		return "N";
    	case PENDING:
    		return "P";    		
    	default:
    		return "P";
    	}
    	
    }
    public String getDescription() {
    	switch (this) {
    	case YES:
    		return "Yes";
    	case NO:
    		return "No";
    	case PENDING:
    		return "Pending";    		
    	default:
    		return "Pending";
    	}
    	
    }
    public static List<LabelValueOption> getOptions(){
    	LabelValueOption opt1 = new LabelValueOption( YesNoVariables.YES.getDescription(), YesNoVariables.YES.getCode());
    	LabelValueOption opt2 = new LabelValueOption( YesNoVariables.NO.getDescription(), YesNoVariables.NO.getCode());
    	//LabelValueOption opt3 = new LabelValueOption( YesNoVariables.PENDING.getDescription(), YesNoVariables.PENDING.getCode());

    	List<LabelValueOption> opts = new ArrayList<LabelValueOption>();
    	opts.add(opt1);
    	opts.add(opt2);
    	//opts.add(opt3);
    	return opts;
    }
}
